<!--
 * @author Santa Antilles
 * @description 每条评论的样式，也是跟ListView一样的东西
 * @date 2023/12/27-00:39:55
 * -->
<template>
  <div style="margin: 10px 0">
    <div class="remark-item-wrapper">
      <div class="aside-avatar">
        <div class="image-content">
          <img :src="baseStaticRecourseAPI[NOW_ENVIRONMENT]+props.Comment.avatar" alt="暂无图片" class="image"/>
        </div>
      </div>
      <div class="remark-body">
        <div class="remark-user-info">
          <span class="remark-username">{{props.Comment.nikeName}}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <span class="remark-other-info">{{props.Comment.commentScore}}分</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <span class="remark-other-info">{{props.Comment.createTime}}</span>
        </div>
        <div class="remark-main-content">
          <text>{{Comment.commentContent}}</text>
        </div>
      </div>
    </div>
    <div class="bottom-split-line"></div>
  </div>
</template>

<script setup>
import {baseStaticRecourseAPI, NOW_ENVIRONMENT} from "@/baseAPIConfig.js";
const props = defineProps({
  Comment:Object,
})

</script>

<style scoped>
.remark-item-wrapper{
  display: flex;
  align-items: center;
  min-width: 100%;
  max-width: 100%;
  height: 240px;
  background-color: #ffffff;
}
.aside-avatar{
  width: 15%;
  height: 100%;
  position: relative;
}
.aside-avatar .image-content{
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aside-avatar .image-content img{
  height: 50px;
  width: 50px;
  border-radius: 10px;
}
.bottom-split-line {
  border-top: 1px dashed #000;
  width: 100%;
  min-width: 800px;
  max-width: 1000px;
  background-color: #fdfbfb;
}
.remark-body{
  position: relative;
  height: 100%;
  width: 85%;
}
.remark-user-info{
  height: 30%;
  display: flex;
  align-items: center;
}
.remark-main-content{
  height: 100%;
}
.remark-main-content textarea{
  resize: none;
  width: 90%;
  height: 95%;
}
.remark-username{
  font-family: 宋体;
  font-weight: bold;
  font-size: 14px;
}
.remark-other-info{
  font-family: 宋体;
  color: #777777;
  font-size: 14px;
}
</style>